//
//  SNOrderFormListModel.m
//  app
//
//  Created by 王少宁 on 15/5/5.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//  订单列表 cell 的model

#import "SNOrderFormListModel.h"

@implementation SNOrderFormListModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        _act_id = dict[@"act_id"];
        _shop_id = dict[@"shop_id"];
        _product_id = dict[@"product_id"];
        _title_pic = dict[@"title_pic"];
        _product_title = dict[@"product_title"];
        _price = [NSString stringWithFormat:@"%.2f",[dict[@"price"] floatValue]];
        _sale_price = dict[@"sale_price"];
        _product_num = dict[@"product_num"];
    }
    return self;
}

+ (instancetype)modelWithDict:(NSDictionary *)dict
{
    return [[self alloc] initWithDict:dict];
}

@end
